The role of proline residues in the dynamics of transmembrane helices: the case of bacteriorhodopsin