Kinetic energy spectrum of horizontal motions in middle-atmosphere models