Numerical analysis of twin-precipitate interactions in magnesium alloys