AI recognition of patient race in medical imaging: a modelling study