Influence of disorder on the magnetic properties of ferrites with spinel structure: Application to magnetite