Modeling the magnetostriction effect in elastomers with magnetically soft and hard particles.