A study of the 16O(d, p)17O reaction