Spin-flip rate of excitonic magnetic polarons in Cd1−xMnxTe/Cd1−yMgyTe quantum wells