Refining segment helps BP turn profit in first quarter