Effect of water density on sonar waves