The stellar occultation technique : retrieving the atmospheric composition from transmittance spectra