Efficient source of shaped single photons based on an integrated diamond nanophotonic system