On the extraction of linear and nonlinear physical parameters in nonideal diodes