Turbo code optimization based on terahertz communication