Gravar-mail: A variational approach to parameter estimation in ordinary differential equations