Added functionality for density difference between slab calculation and the gedanken density to get the surface dipole