The Effects of Photon Leakage on Electron Transport through a Nanoscale Semiconductor Quantum Wire Embedded in a Photon Cavity