Terahertz emission spectroscopy of laser-induced spin dynamics in tmfeo3 and erfeo3 orthoferrites