The switching threshold reconstruction problem for piecewise-affine models of genetic regulatory networks