Magnetically rewritable photonic ink based on superparamagnetic nanochains