The energy firm sells a $1bn stake in its technology arm Kraken, paving the way for its demerger.