Effect of Zn and Ni substitution on the local electronic structure of the YBa 2 Cu 3 O 7 superconductor