Analytical first and second derivatives for a fully polarizable QM/Classical Hamiltonian