Optimality Conditions for Generalized Complementarity Problems