On the calculation of Hall factors for the characterization of electronic devices