How to assign oxidation numbers