Learning Physical Interactions for Molecular Dynamics Simulations