Evolutionarily related insertion pathways of bacterial, mitochondrial, and thylakoid membrane proteins.