Identification of parameters and structure of piecewise affine models of genetic networks