Calpine to buy New Hampshire gas-fired power plant for $500M