Intramolecular charge transfer, solvatochromism and hyperpolarizability of compounds bearing ethenylene or ethynylene bridges