Theory of heat transfer-irreversible power plants