Molecular switch of F0F1-ATP synthase, G-protein, and other ATP-driven enzymes