Photoisomerization and photoionization of the photoactive yellow protein chromophore in solution.