Qualcomm, Nokia reach new patent agreement, end years of bitter disputes