Impact of the filling scheme on the beam spectrum and on the beam–induced RF heating in a synchrotron