A smoothing Newton method based on the modulus equation for a class of weakly nonlinear complementarity problems