what is the function of a centrifuge in laboratory experiments