Non stationary spectral moments and threshold crossings in earthquake engineering