Nestle to divest two factories in Germany, citing rising costs