Spectral Micromagnetic Analysis of Switching Processes