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