Elements of solid state physics