Z-scan technique for characterizing third-order optical nonlinearity by use of quasi-one-dimensional slit beams