Gelfand-Shilov spaces and localization operators