Efficient and robust reduction of motion artifacts for 3D time-of-flight cameras