Non-Line dynamics of flexible risers by the finite element method