Gain of a gaussian beam in a free electron laser for finite emittance electron beams