On the use of spectral methods for the determination of fractal dimension