Effect of electrostatic force on a piezoelectric nanobeam