Elliptic and parabolic problems for a class of operators with discontinuous coefficients