Magnetism and superconductivity in YBa2(Cu1-x(Fe,Ni,Zn)x)3O7−δ