Controlled Biomineralization of Magnetite in Bacteria