Defect-induced selective oxidation of graphene: A first-principles study