Stability analysis of an oscillating tip-cantilever system in NC-AFM