Magnetic 3d impurities in Nb and Mo revisited