A Molecular Assembly Machine Working under a Quasi-Steady State pH Gradient