Beamforming-Based Acoustic Imaging for Distance Retrieval