Robust 3D kinematic analysis of artificial knee implants with statistical motion model