Coherent averaging of electron spins by rotary echoes in excited triplet states