Optimality conditions for nonsmooth equilibrium problems via Hadamard directional derivative