Non-intrusive density measurements in gravity currents interacting with an obstacle