Z-scan with arbitrary aperture transmittance: the strongly nonlinear regime