Structural dynamics of photoactive yellow protein