Crossover from extensive to nonextensive behavior driven by long-range interactions.