Mondelez International is to close two production facilities in Spain, putting around 152 jobs at risk.