Role of a waste-derived polymeric biosurfactant in the sol–gel synthesis of nanocrystalline titanium dioxide