Recent advances in integrated photonics with subwavelength and resonant metamaterials | Synapse