Local Minimizers of Semi-Algebraic Functions from the Viewpoint of Tangencies