Determination of transmembrane pH gradients and membrane potentials in liposomes