Mechanistic connections between the proton motive force and ATP homeostasis in higher plant photosynthesis under dynamic environmental conditions