Quantum phase transitions in d-wave superconductors