An efficient approach for numerical treatment of some inequalities in solid mechanics on examples of Kuhn–Tucker and Signorini–Fichera conditions