A universal approach for the synthesis of two-dimensional binary compounds