Investments in renewable energies: evidence from a panel of countries