Bernanke says optimistic on Basel II consensus