Electrogenic Biofilm Development Determines Charge Accumulation and Resistance to pH Perturbation