Exploring Thermal Photonics For Sustainability: From Selective Solar Absorbers To Terrestrial Radiative Cooling