The importance of radiative feedback for the stellar initial mass function