Networks of quantum nanorings: programmable spintronic devices.