Ring current oxygen ions escaping into the magnetosheath