3D obstacle avoidance and path planning for unmanned underwater vehicles using elastic bands