A necessary optimality condition for nondifferentiable constrained extremum problems