An introduction to solid state physics and its applications