Analysis of dynamic cantilever behavior in tapping mode atomic force microscopy