Cross-section and rate formulas for electron-impact ionization, excitation, deexcitation, and total depopulation of excited atoms