Molecular Design of Fe3O4-Containing Polyimide as a Route to Nanomagnetic Materials