An inverse methodology for calculating strains from conductivity changes in piezoresistive nanocomposites