Coherent emission of light by thermal sources