Macroscopic magnetic properties of Ni and Zn substituted YBa2Cu3Oχ