Phase Measurement of Guided-Mode Resonance Device Using Digital Micromirror Device Gratings