Long-period variables in the Magellanic Clouds - Supergiants, AGB stars, supernova precursors, planetary nebula precursors, and enrichment of the interstellar medium | Synapse