Measuring dielectric properties at the nanoscale using Electrostatic