Ternary Quantum Dots in Chemical Analysis. Synthesis and Detection Mechanisms