X-ray absorption spectroscopy study on the thermal and hydrazine reduction of graphene oxide