Libya's Tripoli government declares emergency, shuts down ports, airports