Machine perfusion for assessing and optimizing kidney and pancreas allografts