How does density change by changing the mass without changing the volume and by changing the volume of a substance without changing the mass?