In vivo regulation of thylakoid proton motive force in immature leaves