Metastructures for signal manipulation