Modeling of the structure of bacteriorhodopsin