Characterization and photocatalytic activity of TiO2 by sol–gel in acid and basic environments