A theoretical study of adiabatic proton transfer to simple substituted nitriles in their ground and excited states