Tailoring hierarchical porous TiO2 based ternary rGO/NiO/TiO2 photocatalyst for efficient hydrogen production and degradation of Rhodamine B