Functionalization of graphene oxide for gas sensing and cation trapping