Preparation of compounds having hydroxy or O-metal groups bound to a carbon atom of a six-membered aromatic ring by reactions increasing the number of carbon atoms by condensation involving halogen atoms of halogenated compounds