Analytic second derivatives from auxiliary density perturbation theory.