Optimality conditions for semi-infinite programming problems involving generalized convexity