Flavan and xanthen compounds from rearrangement of phloroglucinol polymers