Role of direct exchange and Dzyaloshinskii-Moriya interactions in magnetic properties of graphene derivatives: C2F and C2H