Statistics for Stability and tunable electronic structure of planar phosphorus nanotubes