Dynamic covalent chemistry approach toward 18-membered P4N2 macrocycles and their nickel(II) complexes.