G20 commits to open global economy amid slowdown