A replication-casting device for manufacturing open-cell Mg foams