Electric potential and carrier distribution in a piezoelectric semiconductor nanowire in time-harmonic bending vibration