A generalized maximum principle for boundary value problems for degenerate parabolic operators with discontinuous coefficients