Impacts of Environmental Quality on the Demographics of Three Nations