Measuring pelvic tilt and rotation using 2D-3D matching: a validation study