Structure, dynamics, and function of bacteriorhodopsin.