Acoustic Signal Analysis for Sand Detection in Wells with Changing Fluid Profiles