Extremal solutions for nonlinear parabolic problems with discontinuities