Proline residues undergo structural changes during proton pumping in bacteriorhodopsin