Regularity results for a class of obstacle problems with p, q-growth conditions