Magnetic properties of magnetotactic bacteria