How to calculate dopant density from resistivity