Nano-optical mapping of permittivity contrasts and electronic properties at the surface and beneath