Local structure of Mn in (Ga,Mn)As probed by X-ray absorption spectroscopy