Spectral index maps of radio halos and relics