Homes have been destroyed after several nights of unrest in Northern Ireland, where rioters hurled petrol bombs, masonry and fireworks at police.