Mechanism and solvent dependence of the solvent-catalysed pseudo-intramolecular proton transfer of 7-hydroxyquinoline in the first electronically excited singlet state and in the ground state of its tautomer