Temperature- and illumination-dependence of the work function of gallium arsenide