Necessary optimality conditions for nonsmooth robust optimization problems