Comparison of planar and 3d silicon pixel sensors used for detection of low energy antiprotons