Application of the Elasticity Theory of Dislocations to Tectonomagnetic Modelling