The evolution of chemiosmotic energy coupling