Interplay between the electrostatic membrane potential and conformational changes in membrane proteins