Assigning oxidation numbers for compounds with hydroxide ions