X-ray spectra transmitted through Compton-thick absorbers