Decoherence in cross-Kerr nonlinearity based on electromagnetically induced transparency