Generation of longitudinally polarized multi-segment optical needles by tightly focusing RPBG beam