Quantum-phase transitions in CePd2Si2 and CeRh2Si2