Local magnetic order in superconductingYBa2(Cu1−xMx)3O7(M=Co,Fe)