Magnesium alloys and applications