Detection of bone preservation in archaeological and fossil samples