Effect of the surface oxide layer on the stability of black phosphorus