First principles design of a core bioenergetic transmembrane electron-transfer protein.