Model-based open loop control of a multigait legged underwater robot