From membrane structure to bacteriorhodopsin