Investors are rewarding oil giants that did not embrace wind and solar