Crystallographic characterization of a photoactive yellow protein with photochemistry similar to sensory rhodopsin.