Electromagnetic modes of corrugated thin films and surfaces with a transition layer. II. Minigaps.