Charge density analysis of some processes involving intramolecular hydrogen transfer