Gravar-mail: Reconciling periodic rhythms of large-scale biological networks by optimal control