Dynamic Force Microscopy and Spectroscopy in Ambient Conditions: Theory and Applications