The merits of keeping it smooth : iterative linear solvers and a smooth exact penalty function for constrained nonlinear optimization