Accurate determination and application of local strain for studying tissues with gradients in mechanical properties