Small heterocycles as highly luminescent building blocks in the solid state for organic synthesis