Structural Transition and the Electronic/Magnetic Properties of Oxidized Ca$_2$N Electrenes