Guided-mode resonant filters and reflectors: principles, design, and fabrication