Waste characterization and reuse in an aluminium and magnesium foundry