Analytical gradients for molecular-orbital-based machine learning.