Calculation of third-rank molecular hypermagnetizabilities by continuous transformation of the origin of the current density