Metamaterial-Based Optical and Radio Frequency Sensing