Force spectroscopy in noncontact mode