Micromagnetic Simulation of the Magnetoelastic Effect in Submicron Structures