Nonlinear statics and dynamics of nanoelectromechanical systems based on nanoplates and nanowires