Electroreductive palladium-catalysed ullmann reactions in ionic liquids: scope and mechanism