Z-scan analysis for high order nonlinearities through Gaussian decomposition