Cheaper commodities and weaker refining margins hit earnings after bumper performances in 2022 and 2023