Linear and nonlinear vibration analysis of tapping mode atomic force microscopy