Synthesis of topologically-ordered open-cell porous magnesium