Local one-dimensional approximation for fast simulation of Z-scan measurements with an arbitrary beam.