Contrasting effects of magnetic ions on the superconductivity in Tl0.4K0.4Fe2−y−xMxSe2 (M = Mn and Ni)