LLaMA Beyond English: An Empirical Study on Language Capability Transfer