Generalized dimension reduction approach for heterogeneous networked systems with time-delay