Molecular mechanisms of compartmentalization and biomineralization in magnetotactic bacteria.