Resonance Raman studies of heterocyclic aromatic compounds showing ultrafast intramolecular proton transfer