Electrical resistivity and metal-nonmetal transition in n-type doped 4H-SiC