In vivo biomedical applications of magnetic resonance and magnetic materials