An Algorithm for Solving Multiple‐Wave Dynamical X‐ray Diffraction Equations