Applications of large deviations in disordered systems