Neural network aided diffractive metagratings for efficient beam splitting at terahertz frequencies. (21st January 2022)