Large gifts aim to boost diversity and career options amid rising costs for training doctors