Electrically tunable guided mode resonance grating for switchable photoluminescence