A mode matching approach for modeling two dimensional porous grating with infinitely rigid or soft inclusions.