Many surface military ships use sonar as one method for detecting submarines. How would the temperature, density, and salinity of water affect the usefulness of sonar,and why?