Detailed calculation of inner-shell impact ionization to use in photon transport codes