Fundamentals of solid state physics