Level Anticrossing of Impurity States in Semiconductor Nanocrystals