Preparation of compounds containing a naphthacene ring system