Sufficient conditions for the avoidance of spectral dispersion in optical prisms