On-demand generation of background-free single photons from a solid-state source