Eco-friendly Synthesis of Nanoporous Magnesium by Air-Free Electrolytic Dealloying with Recovery of Sacrificial Elements for Energy Conversion and Storage Applications