Model-based compensation of rate-dependent hysteresis in a piezoresistive strain sensor