Magnetic moment assisted layer-by-layer film formation of a Prussian Blue analog.