Nigeria says 'liberated' towns held by Boko Haram