Magnetic Properties of Superconducting and Nonsuperconducting GdBa2(Cu1-xMx)3O7 (M=Fe, Co, Ni: x=0-0.19)