Theory of radiative and nonradiative transitions for semiconductor nanocrystals