Dynamics of formation and dissipation of local pH gradients in the unstirred layers near bilayer lipid membranes