Active optical properties of Er-containing crystallites in sol–gel derived glass films