Ray method in seismology