Renewable energy firms have outperformed oil and gas since mid-2018