Atomic force microscope for chemical sensing