Comparative study of extraction of material parameters from THz time-domain spectroscopy performed in reflection and in transmission