Methods of Statistical Physics Applied to Seismology