A real-time model of the human knee for application in virtual orthopaedic trainer