Photoactive yellow protein terahertz response: hydration, heating and intermediate states