Constraints on the Nieh-Yan modified teleparallel gravity with gravitational waves