State transitions reveal the dynamics and flexibility of the photosynthetic apparatus