Application of the Berry phase to problems in solid-state physics