The impact of MgO-doped near-stoichiometric lithium niobate crystals on the THz wave output characteristics