A Bayesian approach for structure learning in oscillating regulatory networks