Electronic structure and dynamics of photoactive yellow protein chromophores