Invex functions and constrained local minima