Errors in threshold-voltage measurements of MOS transistors for dopant-profile determinations