A theoretical study of the C2H, C2F and C2Cl radicals and their positive ions