Beam propagation computations in one and two transverse dimensions