Dependence of catalytic activity of metal-containing particles on degree of ordering rather than on size and shape. Pd and Ni-catalyzed carbon–heteroatom bond formation