Radiation spectra of warm and optically thick coronae in AGNs