Temperature-dependent terahertz time-domain spectroscopy study of Mg-doped stoichiometric lithium niobate