Unidirectional proton transfer mechanism in the L→M→N sequence of bacteriorhodopsin