Dynamic modelling of a flexible kite for power generation