What two quantities must be known in order to calculate the density of a sample of matter?