Ultrasonic measurements to optimise a tightening system operating under non-ideal conditions