Restoration of the graphitic structure by defect repair during the thermal reduction of graphene oxide