G20 finalizes tools for ending 'too big to fail' banks