A generalization of Jaynes' principle: an information-theoretic interpretation of the minimum principles of quantum mechanics and gravitation