Modeling Human Gait Cycles with a Robotic Leg to Mitigate the Inaccuracies during Prosthetic Fittings