Officers came under attack during trouble in Carrickfergus, Newtownabbey and Londonderry on Sunday night.