Controlling the magnetic properties of dysprosium metallofullerene within metal-organic frameworks.