X-ray-absorption study of Gallium-arsenide at the Ga and As K-edges