Adjustment of Demagnetizing Field in Permalloy Nanowires to Control Domain Wall Motion