Theory And Design Of Terahertz Quantum-Cascade Littrow Metasurface External Cavity Lasers