The influence of an anisotrophic elastic medium on the motion of dislocations: Application to the martensitic transformation