Study of the influence of sub-stitutent and solvents on stability of intramolecular hydrogen bonded systems