Nominal mechanism method of dynamic modeling for snake-like robots