Evolution equations with discontinuous nonlinearities and nonconvex constraints