An impact parameter treatment of the excitation of atoms by charged particles