how magnetite is process of mining used