Throughput Maximization in RIS-Assisted NOMA-THz Communication Network