Office supply chain Staples will close 225 of its stores by the end of next year as part of a plan it hopes will save about $500 million a year by 2015. The Framingham-based chain says nearly half of its sales now are generated online so it is aggressively cutting costs to become more efficient. The closings would amount to about 10 percent of Staples' stores.