A promising approach to 3D printing of metal foam with defined porosity