Renewable energy investments are shifting to developing nations as countries from Morocco to Chile pursue power sources that wean them off fossil fuel imports, two studies promoted by the United Nations said.