Spectroscopic studies of the influence of solvent on the stabilities of intramolecular hydrogen bonded sysdstems