An identification procedure for piecewise-affine models of genetic regulatory networks