Infrared radiative transfer in atmospheres of Earth-like planets around F, G, K, and M stars - II. Thermal emission spectra influenced by clouds