Dependence of bacterial magnetosome morphology on chemical conditions in deep-sea sediments