Mathematical model for pre-operative planning of linear and closing-wedge metatarsal osteotomies for the correction of hallux valgus