First-principles description for coherent phonon generation in diamond