Terahertz time-domain spectroscopy of congruent LiNbO3 and LiTaO3 crystals