A Bioenergetic Basis for Membrane Divergence in Archaea and Bacteria