The oxygen isotope effect in Pr, Ca, and Zn substituted YBa2Cu3O7−δ and EuBa2Cu3O7−δ