Fourier spectrum method to determine dose-to-clear in a photoresist