In-vacuum performance of a 3D-printed ion deflector