Isotope effect in impure high T_c superconductors