Apple, Qualcomm end massive court fight