Transverse structure of a field in nonlinear bistable interferometers. III. Dependence of the beam profile on the Fresnel number