Dynamics of two central spins immersed in spin baths