Multi-electron and multi-state effects in the charge transfer processes between oxygen and metal surfaces