NbTiN superconducting nanowire detectors for visible and telecom wavelengths single photon counting on Si3N4 photonic circuits