Downward continuation of gravitational field quantities to an irregular surface by spectral weighting