Calculation of transverse effects in optical bistability using fast Fourier transform techniques