Qualcomm shares spike on earnings and revenue beat