A nonlinear finite element framework for static and dynamic analysis of structural cables with deviating supports