Estimating illumination parameters using spherical harmonics coefficients in frequency space