Direct-reaction contributions to projectile-fragment spectra at 10?20 MeV/nucleon