Solid-state 17O NMR and computational studies of terminal transition metal oxo compounds