Dynamics of the laser-induced ferroelectric excitation in BaTiO3 studied by x-ray diffraction