Accurate modelling of flexible manipulators using finite element analysis