One-step hydrothermal preparation of bi-functional NiS2/reduced graphene oxide composite electrode material for dye-sensitized solar cells and supercapacitors