Partial oxygen density of states of Bi2Sr2CaCu2O8 determined by resonant photoemission