Properties and applications of quantum dots derived from two-dimensional materials