Synthesis of RGO/NiO nanocomposites adopting a green approach and its photocatalytic and antibacterial properties