Mathematical modeling and numerical simulation of domain wall motion in magnetic nanostrips with crystallographic defects