Collective atomic effects in resonance fluorescence