The UN's food agency says two million people are teetering on the brink of famine in northeastern Nigeria but efforts to reach some of them are being thwarted by Boko Haram.