Production of pulp according to the soda-anthraquinone process (SAP) with recovery of the cooking chemicals