Structural, morphological, optical and photocatalytic properties of green synthesized TiO2 NPs