does magnesium react with oxygen