Deforming metrics in the direction of their Ricci tensors