Thomas–Fermi‐like and average atom models for dense and hot matter