Inferring gene regulatory networks using transcriptional profiles as dynamical attractors