The formation of magnetite in the early Archean oceans