Nonlinear Photonics in Mid-infrared Quantum Cascade Lasers