Bonding of atomic oxygen to Cu(100) and Ag(100) surfaces: a theoretical comparative study