Power spectrum of intrinsic alignments of galaxies in IllustrisTNG