International Physics Olympiad 2024, problem 5: E: Diffraction from Phase Steps

LaTeX transcription of the official paper (solution),
copied as printed, by olimpicos.net. Figures are cropped from the original PDF.
The problems and solutions are the olympiad's own material.
Compile with pdflatex, xelatex or tectonic.
