Ballistic spin-polarized transport and Rashba spin precession in semiconductor nanowires