The electronic structure of impurities and other point defects in semiconductors