Solvent effects on a probable charge-transfer reaction. Inter- and intramolecular photoreactions of tertiary amines with ketones