Spatial filtering by using cascading plasmonic gratings