Palantir plans to go public as it moves away from reliance on government work