Economists have modeled the transition from a world powered by fossil fuels to one in which sustainable sources supply all our energy needs.