Protein conformational dynamics and electronic structure