First-principles study of the electronic and magnetic properties of monolayer CrOBr