First-principles study of 3d transition metal atom adsorption onto graphene: the role of the extended line defect