Explain how carbon-14 dating is used to determine the age of an object