Analytic energy gradients for the Gaussian very fast multipole method (GvFMM)