Ultrasound and motion capture analysis for pre-operative planning in lower limb joint replacement surgeries