Nonlinear dynamics of nanoelectromechanical cantilevers based on nanowire piezoresistive detection