Preparation of a graphene-based magnetic nanocomposite for the removal of an organic dye from aqueous solution