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