Chemisorbed states of atomic oxygen and its replacement by atomic hydrogen on the diamond (100)-(2×1) surface