Spin-polarized current-driven switching in permalloy nanostructures