Multi-purpose fatigue sensor. Part 1. Uniaxial and multiaxial fatigue