The influence of sigma and pi acceptors on two-photon absorption and solvatochromism of dipolar and quadrupolar unsaturated organic compounds.