Libya declares state of emergency in flood-ravaged areas