The numerical methods for analyzing the Z-scan data