Mean-Field Potential for Heterogeneous Electrical Double Layers, with Application to the Surface Pressure of Charged Monolayers