First-Principles Calculations of Dislocations in Semiconductors