The thermal cyclisation is effected by heating to temperatures of about 50???-250??? C., preferably about 100???-150??? C., with or without addition of an inert organic solvent and/or of an azeotropic entraining agent, for example xylenes or toluene.