A generalized modeling strategy for quantum-cascade structures with enhanced optical nonlinearities