Femtosecond formation dynamics of the spin Seebeck effect revealed by terahertz spectroscopy