Mechanism of the formation of an uncompensated magnetic moment in bacterial ferrihydrite nanoparticles