Existence of weak solutions of stochastic differential equations with discontinuous coefficients and with a partially degenerate diffusion operator