Exploiting the time-reversal operator for adaptive optics, selective focusing and scattering pattern analysis