Preparation and characterization of sol–gel glasses containing chromium