Magnetic Analysis of the C$sup 12$(d,p)C$sup 13$and O$sup 18$(d,p)O$sup 17$ Reactions