Tree-level scattering amplitudes in nonlocal field theories