Gas-phase metallicity break radii of star-forming galaxies in IllustrisTNG