Production of mineral fertilizers