Analytical model of nanoscale piezoresistor