Laser operation and Bose-Einstein condensation: analogies and differences