Analysis of electron spin echoes by spectral representation of the stochastic Liouville equation