Elucidation of a pH-folding switch in the Pseudomonas syringae effector protein AvrPto