Spatial impact of microglial distribution on dynamics of dendritic spines