resistance of semiconductor