Mechanism of the photochemical substitution of 6-membered ring monoazaaromatic compounds by methanol in neutral and HCl acidified medium