Second order elliptic equations with discontinuous coefficients in irregular domains