Principles of statistical mechanics : the information theory approach