Phase-Transforming and Switchable Metamaterials