The effect of protein conformational flexibility on the electronic propertiies of a chromophore