Highly luminescent, flexible and biocompatible cadmium-based nanocomposites