A model for the deposition of Cornwall-type magnetite deposits