The relationship between resistivity and dopant density for phosphorus-and boron-doped silicon