Ultrafast exciton spin relaxation in GaAs/AlGaAs and CdMnTe multiple quantum wells