Synthesis of PbI2 nanowires for high sensitivity photodetectors