Density-functional theory approach to ultrafast laser excitation of semiconductors: Application to the A 1 phonon in tellurium