Application of nonextensive statistics to particle and nuclear physics