Characterization of gamma-ray burst prompt emission spectra down to soft X-rays