A generalized Poisson and Poisson-Boltzmann solver for electrostatic environments | Synapse