Electrochemistry of weakly charged membranes