Femtosecond and Attosecond Electron Transfer Dynamics of Semiconductors Probed by the Core-Hole Clock Spectroscopy