First-principles study of the origin and nature of ferromagnetism in Ga 1-x Mn x As