Excited state intramolecular proton transfer in electron-rich and electron-poor derivatives of 10-hydroxybenzo[h]quinoline.