General model for lipid-mediated two-dimensional array formation of membrane proteins: application to bacteriorhodopsin.