Oxide nonlinear crystals: optical properties and phase-matching for terahertz wave generation