Magnetic microgels and nanogels: Physical mechanisms and biomedical applications