Relativistic formulation of the generalized nonextensive Thomas–Fermi model