Diffusion adaptive networks with changing topologies