Studies of atmospheric effects on free-space THz pulse propagation and applications