Light-induced changes in magnetism in a coordination polymer heterostructure, Rb0.24Co[Fe(CN)6]0.74@K0.10Co[Cr(CN)6]0.70·nH2O and the role of the shell thickness on the properties of both core and shell.