Reutilization and stabilization of wastes by the production of glass foams