Existing-home sales show gains in February