Intramolecular hydrogen bonding in acid malonates. Infrared, NMR and ab initio MO investigations