Intergalactic Medium Dispersion Measures of Fast Radio Bursts Estimated from IllustrisTNG Simulation and Their Cosmological Applications