Electrostatic spin control in multi-barrier nanowires