PTh-rGO-TiO2 nanocomposite for photocatalytic hydrogen production and dye degradation