An approach of waveguide mode selection based on the thin-film spatial filters