Three-dimensional boundary-layer instability and separation induced by small-amplitude streamwise vorticity in the upstream flow