A new technique to measure loss, effective refractive index and electric field distribution of THz porous fibers