Transmissive Refractive Index Sensing Based on Frequency-Sensitive Responses of Two-Dimensional Photonic Crystals