Light-matter interaction and Bose-Einstein condensation of light