2D vs 3D tracking in bacterial motility analysis