Effects of oxygen atoms and oxygen molecules on the electronic properties of modified black phosphorus