Traveling wave solutions of the domain wall motion in magnetic nanowires with crystallographic defects