Compensating electrostatic forces by single-scan Kelvin probe force microscopy