A mathematical model of the patellofemoral joint