Analysis of the golf swing with a triple pendulum model