Specificity of the intramolecular hydrogen bond. The differences in spectroscopic characteristics of the intermolecular and intramolecular H-bonds