Magnetic Interaction of Multifunctional Core–Shell Nanoparticles for Highly Effective Theranostics