Photoinduced proton transfer as a possible mechanism for highly efficient excited-state deactivation in proteins