Nonlinear statics and dynamics of NEMS based on nanoplates and nanowires