Libya warns companies against buying oil, government to stop paying local militias