Text this: Phase-transition materials derived photonic metamaterials for passively dynamic solar thermal and coldness harvesting