Electron and hole g-factor oscillations in CdTe-based modulation-doped quantum wells