Improvement in the Leaching Behavior of Dye-Doped Modified Silica Layers Coated onto Paper or Textiles