Rhythmic shape change of a vesicle under a pH gradient