Assessment of fighting ability in animal contests