When a gas in a container is compressed to half its volume, what happens to its density?