On simulating light diffraction by layered structures with multiple wedges