Multiple tunnel junctions based nanowire photodetector model for single charge detection