Two-photon absorption and first nonlinear optical properties of ionic octupolar molecules: structure-function relationships and solvent effects.