A mean field model for the development of renewable capacities