Carbon dots as building blocks for the construction of functional nanocomposite materials