Application of the ray-tracing theory to the stability analysis of three-dimensional compressible boundary layers