Refractive Index and Absorption Coefficient of Undoped and Mg-Doped Lithium Tantalate in the Terahertz Range