Magnetic nanocellulose: influence of structural features on conductivity and magnetic properties