Photoisomerization and proton transfer in photoactive yellow protein.