The Carrier Trapping due to the Dislocations in Polar and Nonpolar Semiconductors