First-principles study of Co- and Cu-doped Ni2MnGa along the tetragonal deformation path