On-chip heralded single photon sources