A spectroscopic study of proton transfer and photochromism in N-(2-hydroxybenzylidene)aniline