Module identification in dynamic networks: parametric and empirical Bayes methods