Substituent and solvent effects on the excited state deactivation channels in anils and boranils.