How does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their Sources