Modulated magnetic structure of the Kondo compound TmS