Chemisorption and 1s binding energies in oxygen atom and negative ion