Er3+-activated nanocomposite photonic glasses and confined structures