Nonsmooth Newton-like Methods for Variational Inequalities and Constrained Optimization Problems in