Parabolic equations with discontinuous nonlinearities