Effects of porosity and pore size on the compressive properties of closed-cell Mg alloy foam