Delayed light emission to distinguish astrophysical neutrino flavors in IceCube