Optimality conditions and duality for nonsmooth vector equilibrium problems with constraints