Structures and mechanisms of membrane-embedded energy-transducing molecular machines