Add–drop filter based on apodized surface-corrugated gratings