Simultaneous determination of 18O/16O and D/H in compounds containing C, H and O