Use of wastes in glasses, glass-ceramics and ceramics