The effects of the quality of primary care on diabetes outcomes