In situ time-resolved XAFS study of the reaction mechanism of bromobenzene homocoupling mediated by [Ni(cod)(bpy)].