Palantir beats earnings expectations as AI demand drives first-quarter revenue