Teaching According to Talents! Instruction Tuning LLMs with Competence-Aware Curriculum Learning