Principle workings of the AFM