Mathematical modeling of magnetostrictive nanowires for sensor application