Impact of diffusion methods and metal cations on photochromic three-component D-A hybrid heterostructures.