Inexact-Restoration Method with Lagrangian Tangent Decrease and a New Merit Function for Nonlinear Programming