Edge-Cloud Polarization and Collaboration: A Comprehensive Survey