Nonsmooth vector-valued invex functions and applications