An instrumental function and a non-linear least-squares multi-spectral-line-fitting algorithm applicable to FTS studies