Primary and secondary extinctions in the dynamical theory for an imperfect crystal