Femtosecond and Attosecond Electron Dynamics in Semiconductors and Dielectrics