How does the amount of matter change when water changes state?