Dozens dead as militias battle for power in Libya