Origin and evolution of biological energy conversion