The charge-density method of solving electrostatic problems with and without the inclusion of space-charge | Synapse