Oil and gas producer to sell refinery for $215 million