A class of backward doubly stochastic differential equations with discontinuous coefficients