Controllable Carrier Type in Boron Phosphide Nanowires Toward Homostructural Optoelectronic Devices.