Palantir stock soars 21% after third-quarter earnings beat