Comparative examinations on the activity and variant selection of twinning during tension and compression of magnesium alloys