The theory of the excitation of atomic inner-shells in crystals by fast electrons