A spectral analyzer for the thermoelastic and thermoplastic response of solids to low frequency dynamic loads