Quantum Phase Transitions in Models of Magnetic Impurities