Mechanical properties and the structure of magnetic composite materials