Development and Implementation of a Generic Methodology for Contact Dynamics of the Human Knee Joint