Structures and electronic properties of oxidized graphene from first-principles study