A cosmological view of extreme mass-ratio inspirals in nuclear star clusters