A nearly deterministic scheme for generating χ-type entangled states with weak cross-Kerr nonlinearities