The alternative density structures of cold/saltwater pools on a sloping bottom: the role of friction