Analytical calculations of frequency-dependent hypermagnetizabilities and Cotton-Mouton constants using London atomic orbitals.