Duality with invexity for a class of nondifferentiable static and continuous programming problems