Coherent spin-spin coupling mediated by virtual microwave photons