High-resolution inner-shell photoabsorption of the OH and OD free radicals