Exxon stock climbs as earnings beat expectations