Quantitative fitting of nonlinear current–voltage curves and parameter retrieval of semiconducting nanowire, nanotube and nanoribbon devices