Spectral sunphotometry using a compact spectrometer