• From all the combinations, the solution that minimizes the total error is selected.• In the case where the two angles are the same, the system is solved with the assumption that ∆1 = 0.• When the sum of the angles is 360◦, the solution is taken from Eqs. (4) and (6).• Finally, a constraint for the solution is that the direction of the waves must be a smooth function of frequency.