Scattering Rate Modeling in Semiconductor Quantum Wells and Quantum Cascade Lasers Using the 8-band k·p Formalism