Design of an Iterative Predictive Carbon-Aware Resource Scheduling Method for Cloud–fog–edge Ecosystems Through Multi-Stage Energy and Thermal Optimizations | Synapse