Modeling Piezoresistive Effects in Flexible Sensors