Glassy Materials and Disordered Solids: An Introduction to Their Statistical Mechanics