Photoisomerization of azobenzene units drives the photochemical reaction cycles of proteorhodopsin and bacteriorhodopsin analogues