Nestlé has sold two nutrition businesses - one in France and the other in Spain - to German healthcare group Fresenius SE.