Quantification of intratumoural heterogeneity in mice and patients via machine-learning models trained on PET–MRI data