Synthesis of p-type phosphorus doped ZnSe nanowires and their applications in nanodevices