Curie and non-Curie behavior of impurity spins in quantum antiferromagnets