Effect of precipitate shape on slip and twinning in magnesium alloys