The Principles of Statistical Mechanics