Magnetoelasticity in Nanoscale Heterogeneous Materials