Quantifying Artifacts in Ewald Simulations of Inhomogeneous Systems with a Net Charge.