Effect of primary medical care on addiction and medical severity in substance abuse treatment programs