The role of the mitochondria in a living cell is to