Improved method for computing of light-matter interaction in multilayer corrugated structures.