The generation of axial vorticity in solid-propellant rocket-motor flows