First hyperpolarizabilities of ionic octupolar molecules: structure–function relationships and solvent effects