Metallic-semiconducting phase transition of the edge-oxygenated armchair graphene nanoribbons