Machine Learning Implicit Solvation for Molecular Dynamics