Perturbation bounds for matrix square roots and pythagorean sums