Electrostatic Force Spectroscopy of Localized States