Extinction within the limit of validity of the Darwin transfer equations. I. General formalism for primary and secondary extinction and their applications to spherical crystals