Resonant spin-flavor precession of neutrinos and pulsar velocities