Oxidation of two-dimensional electrides: Structural transition and the formation of half-metallic channels protected by oxide layers