Solar resources and carbon footprint of photovoltaic