Three-dimensional photonic-crystal cavity with an embedded quantum dot as a nonclassical light emitter