In-Context Ability Transfer for Question Decomposition in Complex QA