An extension of Hestenes' necessary condition for nondifferentiable constrained extremum problems