Study: Medical homes boost quality, cut costs