The battle for Tripoli between rival Libyan forces both championing the fight against "terrorism" has created a security vacuum, allowing the Islamic State group a chance to re-emerge, analysts warn.