Gravar-mail: Structure learning in coupled dynamical systems and dynamic causal modelling