Interaction energy of dislocations with magnetization in evaporated films