Mechanical-stress relaxation in magnesium-based composites