Analysis of the cost of training residents in a community health center