Ultrasonic Ranging using Frequency Selective Attenuation