The influence of phonons and impurities on the broadening of excitonic spectra in gallium arsenide