Valero posts record $3.7B profit as refining margins surge