Design of polarization insensitive filters with micro- and nano-grating structures