The large deviation principle in statistical mechanics: an expository account