Atomic oxygen in the comae of comets