Calculating total electrostatic energies with the nonlinear Poisson-Boltzmann equation | Synapse