Generation of efficient THz radiation from organic and inorganic nonlinear crystals and its applications