All-electron versus pseudopotential calculation of optical properties: the case of GaAs