Terahertz-infrared spectroscopy of Ti4+-doped M-type barium hexaferrite