The degenerate electron gas in tungsten bronzes and in highly doped silicon