A global perspective on the nexus between energy and stock markets in light of the rise of renewable energy