Estimating the cost to departments of medicine of training residents and fellows