Behavior of compacted magnesium-based powders for energy-storage applications