Magnesium air battery production process