Frequency analysis of piezoelectric nanowires with surface effects