The evolutionary origin of various types of mitochondria