Exxon to write off up to $20B of assets despite 4Q gains