Processing and mechanical properties of magnesium foams