Energy and utilities emerge as big winners from fears that artificial intelligence will upend software industry