Self-assembled quantum dots as a source of single photons and photon pairs