Port-based Modelling of Manipulators with Flexible Links