Ab initio and oxygen-17 NMR study of aromatic compounds with dicoordinate oxygen atoms. 2. Intramolecular hydrogen bonding in hydroxy- and methoxybenzene derivatives