Multi-body analysis of a bio-inspired underwater robot