First-Principles Investigation of Black Phosphorus Synthesis.