Apple, Qualcomm settle royalty dispute, sources say