A Model of Bone Adaptation Using a Global Optimisation Criterion Based on The Trajectorial Theory of Wolff