Differentiable Molecular Simulations for Control and Learning