RELATIVISTIC EQUATION OF STATE AT SUBNUCLEAR DENSITIES IN THE THOMAS–FERMI APPROXIMATION