Excellent photocatalytic performance of Zn(1-x)MgxO/rGO nanocomposites under natural sunlight irradiation and their photovoltaic and UV detector applications